<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */

$this->pageTitle=Yii::app()->name . ' - Contact Us';
$this->breadcrumbs=array(
	'Contact',
);
?>
<div id="contact">
<h1>Address</h1>
<p>120 Mu 2, Soi Wat kae, Suksawad Rd., Pak Khlong Bang Plakod,
 Phra Samut Chedi, Samut Prakarn 10290 Thailand</p>
 <p>Tel: +66 2425 6999 , +66 2815 5999</p>
 <p>Fax : +66 2425 6998, +66 2425 6996</p>
 <div class="map">
 <img src="/images/BMTP-MAP-NEW-Resize.jpg" />
 <iframe width="910" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.th/maps?hl=en&amp;q=bmtp&amp;safe=off&amp;ie=UTF8&amp;hq=bmtp&amp;hnear=&amp;radius=15000&amp;ll=13.598565,100.584855&amp;spn=0.03487,0.045061&amp;t=m&amp;z=14&amp;iwloc=A&amp;cid=10064870302846340404&amp;output=embed"></iframe></div>
</div>

<div id="contact_form">
<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('contact'); ?></div>

<?php else: ?>
<div class="form">
<h1>Contact Form</h1>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name'); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email'); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'subject'); ?>
		<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'subject'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'body'); ?>
		<?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'body'); ?>
	</div>

	<?php if(CCaptcha::checkRequirements()): ?>
	<div class="row">
		<?php echo $form->labelEx($model,'verifyCode'); ?>
		<div>
		<?php $this->widget('CCaptcha'); ?>
		<?php echo $form->textField($model,'verifyCode'); ?>
		</div>
		<?php echo $form->error($model,'verifyCode'); ?>
	</div>
	<?php endif; ?>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->

<?php endif; ?>
</div>
<div id="contact_staff">
<h1>Contact:</h1>
<ul>
<p>Customer Service</p>
<li>Email: customerservice@bmtp.co.th</li>
<li>Tel.   : +66 2425 6999 , +66 2815 5999 ext.237</li>
</ul>

</div>